package com.dinglian.ots.common.model;

import lombok.Data;

/**
 * 常量类
 *
 * @author wangbo
 */
@Data
public class Constant {

    /**
     * 品牌排行榜中取的定量字段名
     */
    public static final String TOP_OBJECT_NAME = "qty";

    /**
     * 品牌排行榜的redis key名
     */
    public static final String TOP_BRAND = "brandRank";

    /**
     * type类型 1店铺 2品牌 3商品
     */
    public static final int TYPE_STORE = 1;

    public static final int TYPE_BRAND = 2;

    public static final int TYPE_PRODUCT = 3;


    public static final String SHOWROOM = "showroom";
    public static final String BRAND = "brand";

    //文件夹名称
    public static final String PRODUCT_THUMBNAIL = "product/thumbnail/";
    public static final String PRODUCT_EDITOR = "product/editor/";
    public static final String PRODUCT_WHITE = "product/whitePic/";
    public static final String PRODUCT_DETAIL = "product/detail/";
    public static final String BRAND_LOGO = "brand/logo/";
    public static final String BRAND_LOOKBOOK = "brand/lookbook/";
    public static final String BUYER_DETAIL = "buyer/detail/";
    public static final String BUYER_BUSINESS = "buyer/business/";
    public static final String BUYER_HISTORY = "buyer/history/";

    //角色Id
    public static final int ADMIN_ROLE = 1;
    public static final int BUYER_ROLE = 2;
    public static final int BRAND_ROLE = 3;
    public static final int SHOWROOM_ROLE = 4;

    public static final String ADMIN_ROLE_NAME = "ad";
    public static final String BUYER_ROLE_NAME = "by";
    public static final String BRAND_ROLE_NAME = "br";
    public static final String SHOWROOM_ROLE_NAME = "sr";


    //订单类型 1-选款单 2-订单 3-退货
    public static final int ELECTION_ORDER = 1;
    public static final int NORMAL_ORDER = 2;
    public static final int BACK_ORDER = 3;

    //产品状态
    public static final int UNAUDITED  = 1;
    public static final int SUBMITTED = 2;
    public static final int AUDITED = 3;

    //订单状态  1-未支付 2-已支付
    public static final int UNPAY = 1;
    public static final int PAYED = 2;

    public static final String SESSION_USER = "sessionUser";

    public static final String[] PRODUCT_EXCEL_EN = {"Picture", "Linesheet Name", "Season Year", "Style Name", "Style Number", "Color", "Color Code", "Color ID", "Fabrication", "Fabrication Code",
            "Materials","Description","Category","Subcategory","Available Sizes","OS","XS","S","M","L","XL","XXL","35","35½","36","36½","37","37½","38","38½","39","39½","40","40½","41","41½","42","42½","43","43½","44",
            "Wholesale","Suggest Retail (CNY)","Mark Down", "Mark Up","Discount (%)","Units","Style Minimum","Color Minimum","Final Unit Cost (CNY)","Total Wholesale (CNY)","Total Retail (CNY)"};

    public static final String[] PRODUCT_EXCEL_CN = {"图片", "Line Sheet名称", "订货季", "款式名称", "款式编码", "颜色", "颜色码", "颜色号", "面料", "面料码",
            "材质","商品描述","分类","子分类","尺码","OS","XS","S","M","L","XL","XXL","35","35½","36","36½","37","37½","38","38½","39","39½","40","40½","41","41½","42","42½","43","43½","44","订货价","建议零售价","订货折扣",
            "倍率","折扣（%）","单位","单款最小订单","单色最小订单","最终单款价格","订货总额","零售总额"};

}
